import { postRequest, getRequest, getPdfDownload } from '@/utils/axios';

export default {
  // 部门树
  userOrgTreeSelector() {
    return getRequest('/department/treeList')
  },
  // 所有员工
  users(params) {
    return getRequest('/employee/queryAll',params)
  },
  // 根据部门查询员工
  userSelector(departmentId) {
    return getRequest(`/employee/getAllEmployeeByDepartmentId/${departmentId}}`)
  },
  // 角色
  userRoleSelector() {
   return getRequest('/role/getAll');
  }
}
